<template>
	<el-form-item :label="$t('designer.setting.defaultValue')">
		<el-date-picker :type="thisOptionModel.type" v-model="thisOptionModel.defaultValue" @change="emitDefaultValueChange"
						:format="thisOptionModel.format" :value-format="thisOptionModel.valueFormat" style="width: 100%">
		</el-date-picker>
	</el-form-item>
</template>

<script>
import propertyMixin from "@/components/designer/form-designer/setting-panel/property-editor/propertyMixin"

export default {
	name: "date-range-defaultValue-editor",
	mixins: [propertyMixin],
	props: {
		designer: Object,
		selectedWidget: Object,
		optionModel: Object,
	},
	data() {
		return {
			thisOptionModel: this.optionModel
		}
	},
	watch: {
		'optionModel': {
			handler(val) {
				if (val) {
					this.thisOptionModel = val
				}
			}
		},
	},
}
</script>

<style scoped>

</style>
